<?php
namespace app\cache\controller;

use tp5_lib\common\controller\TestBaseController;

class CacheController extends TestBaseController
{
    public function write()
    {
        cache("test","hello world !");
        return "ok";
    }
    public function read()
    {
        return cache("test");
    }
    public function writeSession()
    {
        session("test","session start");
        return "ok";
    }
    public function readSession()
    {
        return session("test");
    }
}
